package com.qqtech.qquan.user.service;

import com.qqtech.core.common.exception.BizzException;
import com.qqtech.core.frame.service.BaseService;
import com.qqtech.qquan.user.model.UserMessage;

public interface UserMessageService extends BaseService<UserMessage> {
	
	/**
	 * 添加留言
	 * @param message
	 * @return
	 */
	public int addMessage(UserMessage message) throws BizzException;
	
	/**
	 * 最后一条留言
	 * @param fromId
	 * @param toId
	 * @return
	 */
	public UserMessage queryLastMessage(Integer fromId,Integer toId);
}